import request from '@/utils/request'

export function getArticleList (current, pageSize) {
  return request.get('/admin/interview/query', {
    params: {
      current,
      pageSize
    }
  })
}

// 删除
export function deleteArticleList (id) {
  return request.delete('/admin/interview/remove', {
    data: { id }
  })
}

//
export function createArticle (obj) {
  return request.push('/admin/interview/create', obj)
}

// 获取面经详情
export function getArticleDetail (id) {
  return request.get('/admin/interview/show', { params: { id } })
}

// 更新面经
export function updateArticle (obj) {
  return request.put('/admin/interview/update', obj)
}
